package com.hong.pro.annotation;

import com.hong.pro.enums.DataBaseEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description:
 * @Author Hong Qiang
 * @Date 2023/11/24 13:31
 * @Version 1.0
 */
@Target({ElementType.FIELD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Column {

    /*字段、表名*/
    String value();

    /*注释*/
    String comment() default "";

    /*长度*/
    String length() default "";

    /*字段类型*/
    String colType() default "";

    /*数据库类型*/
    DataBaseEnum dbType() default DataBaseEnum.Oracle;
}
